function dadflow(key, name, child) {
  var dad = new Object;
  dad.key = key;
  dad.name = name;
  dad.child = child;
  return dad;
}//dadflow

function sonflow(key, time, event, person, todo) {
  var son = new Object;
  son.key = key;
  son.time = time;
  son.event = event;
  son.person = person;
  son.todo = todo;
  return son;
}//sonflow
function sortByTime(a, b) {
  return a.time > b.time;
}
module.exports = {
  dadflow: dadflow,
  sonflow: sonflow
}